package com.ml.loan.sys.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.loan.common.model.PageResult;
import com.ml.loan.sys.model.User;

import java.util.List;

/**
 * 用户表 服务类
 *
 * @author wangfan
 * @since 2019-02-11
 */
public interface UserService extends IService<User> {

    User getByUsername(String username);

    User getByUserId(Integer id);

    PageResult<User> listUser(Integer page, Integer limit, Integer type, String searchKey, String searchValue);

    boolean add(User user, List<Integer> roleIds);

    boolean update(User user, List<Integer> roleIds);

    List<User> getCustomerlist();
}
